﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="dangky.ascx.cs" Inherits="eDream.admin.dangky" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<div style="margin-top: 20px">
    <div class="contentext1">
        Chi nhánh
    </div>
    <div class="contentext2">
        <dx:ASPxComboBox ID="cbxChinhanh" runat="server" ValueType="System.String" Width="200px" Theme="DevEx" AutoPostBack="true" OnSelectedIndexChanged="cbxChinhanh_SelectedIndexChanged">
        </dx:ASPxComboBox>
    </div>

    <div class="Clear"></div>

    <div class="contentext1">
        Văn phòng
    </div>
    <div class="contentext2">

        <dx:ASPxComboBox ID="cbVanphong" runat="server" ValueType="System.String" Width="200px" Theme="DevEx" Enabled="false" AutoPostBack="false">
        </dx:ASPxComboBox>


    </div>

    <div class="Clear"></div>

    <div class="contentext1">
        Tên đăng nhập
    </div>
    <div class="contentext2">
        <dx:ASPxTextBox ID="txtUserName" runat="server" Width="200px" Theme="DevEx" MaxLength="50">
            <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập tên đăng nhập">
                <RegularExpression ErrorText="Tên đăng nhập phải từ 5 ký tự trở lên"
                    ValidationExpression="[^\s]{5,50}" />
            </ValidationSettings>
        </dx:ASPxTextBox>
    </div>

    <div class="Clear"></div>
    <div class="contentext1">
        Họ và chữ lót
    </div>
    <div class="contentext2">
        <dx:ASPxTextBox ID="txtLassname" runat="server" Width="200px" Theme="DevEx" MaxLength="50">
            <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập họ và chữ lót">
            </ValidationSettings>
        </dx:ASPxTextBox>
    </div>
    <div class="Clear"></div>
    <div class="contentext1">
        Tên
    </div>
    <div class="contentext2">
        <dx:ASPxTextBox ID="txtFirstname" runat="server" Width="200px" Theme="DevEx" MaxLength="50">
            <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập Tên">
            </ValidationSettings>
        </dx:ASPxTextBox>
    </div>
    <div class="Clear"></div>
    <div class="contentext1">
        Email
    </div>
    <div class="contentext2">
        <dx:ASPxTextBox ID="txtEmail" runat="server" Width="200px" Theme="DevEx" MaxLength="50">
            <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập email">
                <RegularExpression ErrorText="Email không hợp lệ"
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
            </ValidationSettings>
        </dx:ASPxTextBox>
    </div>
    <div class="Clear"></div>
    <div class="contentext1">
        Điện thoại
    </div>
    <div class="contentext2">
        <dx:ASPxTextBox ID="txtDienthoai" runat="server" Width="100px" Theme="DevEx" MaxLength="12">
            <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập điện thoại">
                <RegularExpression ErrorText="Điện thoại không hợp lệ"
                    ValidationExpression="0\d{9,10}" />
            </ValidationSettings>
        </dx:ASPxTextBox>
    </div>
    <div class="Clear"></div>

    <div class="contentext1">
        Địa chỉ
    </div>
    <div class="contentext2">
        <dx:ASPxTextBox ID="txtDiachi" runat="server" Width="300px" Theme="DevEx" MaxLength="200">
            <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập địa chỉ">
            </ValidationSettings>
        </dx:ASPxTextBox>
    </div>

    <div class="Clear"></div>
    <div class="contentext1">
        Giới tính
    </div>
    <div class="contentext2">
        <dx:ASPxComboBox ID="cbGioitinh" runat="server" ValueType="System.String" Theme="DevEx">
            <Items>
                <dx:ListEditItem Text="Nam" Value="0" />
                <dx:ListEditItem Text="Nữ" Value="1" />
            </Items>
        </dx:ASPxComboBox>
    </div>
    <div class="Clear"></div>
    <div class="contentext1">
        Ngày sinh
    </div>
    <div class="context50">
        <dx:ASPxComboBox ID="cbNgay" runat="server" ValueType="System.String" Width="60px" Theme="DevEx">
            <Items>
                <dx:ListEditItem Text="01" Value="1" />
                <dx:ListEditItem Text="02" Value="2" />
                <dx:ListEditItem Text="03" Value="3" />
                <dx:ListEditItem Text="04" Value="4" />
                <dx:ListEditItem Text="05" Value="5" />
                <dx:ListEditItem Text="06" Value="6" />
                <dx:ListEditItem Text="07" Value="7" />
                <dx:ListEditItem Text="08" Value="8" />
                <dx:ListEditItem Text="09" Value="9" />
                <dx:ListEditItem Text="10" Value="10" />
                <dx:ListEditItem Text="11" Value="11" />
                <dx:ListEditItem Text="12" Value="12" />
                <dx:ListEditItem Text="13" Value="13" />
                <dx:ListEditItem Text="14" Value="14" />
                <dx:ListEditItem Text="15" Value="15" />
                <dx:ListEditItem Text="16" Value="16" />
                <dx:ListEditItem Text="17" Value="17" />
                <dx:ListEditItem Text="18" Value="18" />
                <dx:ListEditItem Text="19" Value="19" />
                <dx:ListEditItem Text="20" Value="20" />
                <dx:ListEditItem Text="21" Value="21" />
                <dx:ListEditItem Text="22" Value="22" />
                <dx:ListEditItem Text="23" Value="23" />
                <dx:ListEditItem Text="24" Value="24" />
                <dx:ListEditItem Text="25" Value="25" />
                <dx:ListEditItem Text="26" Value="26" />
                <dx:ListEditItem Text="27" Value="27" />
                <dx:ListEditItem Text="28" Value="28" />
                <dx:ListEditItem Text="29" Value="29" />
                <dx:ListEditItem Text="30" Value="30" />
                <dx:ListEditItem Text="31" Value="31" />
            </Items>
        </dx:ASPxComboBox>
    </div>
    <div class="context5px">/</div>
    <div class="context50">
        <dx:ASPxComboBox ID="cbThang" runat="server" ValueType="System.String" Width="60px" Theme="DevEx">
            <Items>
                <dx:ListEditItem Text="01" Value="1" />
                <dx:ListEditItem Text="02" Value="2" />
                <dx:ListEditItem Text="03" Value="3" />
                <dx:ListEditItem Text="04" Value="4" />
                <dx:ListEditItem Text="05" Value="5" />
                <dx:ListEditItem Text="06" Value="6" />
                <dx:ListEditItem Text="07" Value="7" />
                <dx:ListEditItem Text="08" Value="8" />
                <dx:ListEditItem Text="09" Value="9" />
                <dx:ListEditItem Text="10" Value="10" />
                <dx:ListEditItem Text="11" Value="11" />
                <dx:ListEditItem Text="12" Value="12" />
            </Items>
        </dx:ASPxComboBox>
    </div>
    <div class="context5px">/</div>
    <div class="context50">
        <dx:ASPxComboBox ID="cbNam" runat="server" ValueType="System.String" Width="70px" Theme="DevEx">
        </dx:ASPxComboBox>
    </div>
    <div class="Clear"></div>
    <div class="contentext1">
        Người giới thiệu
    </div>
    <div class="contentext2">
        <dx:ASPxTextBox ID="txtNguoigioithieu" runat="server" Width="200px" Theme="DevEx" MaxLength="50">
            <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập người giới thiệu">
            </ValidationSettings>
        </dx:ASPxTextBox>
    </div>
    <div class="Clear"></div>
    <div class="contentext1">
        Người tư vấn
    </div>
    <div class="contentext2">
        <dx:ASPxTextBox ID="txtNguoituvan" runat="server" Width="200px" Theme="DevEx" MaxLength="50">
            <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập người tư vấn">
            </ValidationSettings>
        </dx:ASPxTextBox>
    </div>
    <div class="Clear"></div>
    <div class="contentext1">
        CMND
    </div>
    <div class="contentext2">
        <dx:ASPxTextBox ID="txtCMND" runat="server" Width="200px" Theme="DevEx" MaxLength="9">
            <MaskSettings Mask="000000000" />
            <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập CMND">
            </ValidationSettings>
        </dx:ASPxTextBox>
    </div>
    <div class="Clear"></div>
    <div class="contentext1">
        Visa
    </div>
    <div class="contentext2">
        <dx:ASPxTextBox ID="txtVisa" runat="server" Width="200px" Theme="DevEx" MaxLength="50">
        </dx:ASPxTextBox>
    </div>
    <div class="Clear"></div>
    <div class="contentext1">
        Trạng thái
    </div>
    <div class="contentext2">
        <dx:ASPxComboBox ID="cbTrangthai" runat="server" ValueType="System.String" Theme="DevEx">
            <Items>
                <dx:ListEditItem Text="Đã thanh toán" Value="0" />
                <dx:ListEditItem Text="Tạm ứng" Value="1" />
                <dx:ListEditItem Text="Chưa thanh toán" Value="2" />
            </Items>
        </dx:ASPxComboBox>
    </div>
    <div class="Clear"></div>
    <div class="contentext1">
        Số tiền đóng
    </div>
    <div class="contentext2">
        <dx:ASPxTextBox ID="txtMoney" runat="server" Width="100px" Theme="DevEx" Style="float: left; margin-right: 5px" MaxLength="6" DisplayFormatString="C0">
            <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập tiền đóng">
            </ValidationSettings>
        </dx:ASPxTextBox>
        <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="(VNĐ)"></dx:ASPxLabel>
    </div>
    <div class="Clear"></div>
    <div class="contentext1">
    </div>
    <div class="contentext2">
        <asp:HiddenField ID="hdftuvan" runat="server" />
        <asp:HiddenField ID="hdfgioithieu" runat="server" />
    </div>
    <div class="Clear"></div>
    <div class="contentext1">
    </div>
    <div class="contentext2">
        <dx:ASPxButton ID="btnSave" runat="server" Text="Đồng ý" Theme="iOS" ValidationGroup="g1" AutoPostBack="false" OnClick="btnSave_Click">
        </dx:ASPxButton>
    </div>
    <div class="Clear"></div>
    <div class="contentext1">
    </div>
    <div class="contentext2">
        <dx:ASPxLabel ID="lbthongbao" runat="server"></dx:ASPxLabel>
    </div>
</div>
